package com.io.classesforutility;

import java.util.ArrayList;

import com.io.utility.Serializer;
import com.io.utility.Utility;

public class Demo {
	private static ArrayList objects;
	
	public static void main(String[] args) {
		initCollection();
		
		
	}

	/**
	 * The method initializes the collection of objects.
	 */
	private static void initCollection() {
		objects = new ArrayList();
		
		Dog dog1 = new Dog("Sam", "black");
		Dog dog2 = new Dog("Prince", "white");
		Dog dog3 = new Dog("Jinky", "beige");

		Person person1 = new Person("Niki", 20, "Java");
		
		objects.add(dog1);
		objects.add(dog2);
		objects.add(dog3);
		objects.add(person1);
		
		Serializer serializer = new Serializer();
		serializer.serializeObject(dog1);
	}

}
